package com.cqwu.util;

import java.math.BigInteger;
import java.security.MessageDigest;

/**
* @Title: MD5Util
* @Description: MD5加密工具类
* @Company: 物联网俱乐部
* @author: lj
* @date: Nov 17, 2015 3:55:55 PM
*/
public class MD5Util{
public static String makeMD5(String password) {   
MessageDigest md;   
   try {   
    md = MessageDigest.getInstance("MD5");   
    md.update(password.getBytes());   
    String pwd = new BigInteger(1, md.digest()).toString(16);   
    return pwd;   
   } catch (Exception e) {   
    e.printStackTrace();   
   }   
   return password;   
	}
}